package com.patentbackend.patentmanage.repository;

import com.patentbackend.patentmanage.entity.LegalDocument;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface LegalDocumentRepository extends JpaRepository<LegalDocument, Long> {
    Page<LegalDocument> findByTitleContaining(String title, Pageable pageable);
    Page<LegalDocument> findByCategory(String category, Pageable pageable);
}